<template>
  <div>
    <el-dialog :title="title" :closeOnClickModal="false" :visible.sync="show" width="650px">
      <el-form label-position="right" :model="selectTable" ref="addForm" label-width="80px" :inline="false" autocomplete="off">
        <el-form-item label="直播间id">{{selectTable.roomNo}}</el-form-item>
        <el-form-item label="主题名称">{{selectTable.topicName}}</el-form-item>
        <el-form-item label="创建者">{{selectTable.userName}}</el-form-item>
        <el-form-item label="公告">{{selectTable.notice}}</el-form-item>
        <el-form-item label="创建时间">{{selectTable.createTime | parseTime('{y}-{m}-{d} {h}:{i}:{s}')}}</el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer" v-loading="pload">
        <el-button @click="show = false">关闭</el-button>
      </div>
    </el-dialog>
  </div>
</template>

<script>
import * as api from '@/utils/api'
export default {
  components: {
  },
  props: {
    data: Object
  },
  created() {
    this.selectTable = this.JSONs(this.data)
  },
  watch: {
    show(newVal) {
      this.$emit('close')
    }
  },
  computed: {
    title() {
      return '查看'
    }
  },
  data() {
    return {
      show: true,
      selectTable: {}
    }
  },
  methods: {
  }
}
</script>
